<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="main.css">
    <script src="jquery-3.1.0.js"></script>
    <script type="text/javascript" src="core.js"></script>
    <script type="text/javascript" src="jsInterface.js"></script>

    <script type="text/javascript"  >
            window.Jsbridge.invoke('头部就可以回调');

    </script>


</head>
<body>

<div>

    <button type="button"  onclick="callAndroidFromAddJsObj()" class="buttonT">callAndroidFromH5有callback</button>
</div>
<script>




function myFunction() {
    console.log('myFunction called');
}


function callAndroidFromAddJsObj(){
    window.Jsbridge.invoke('firstnotify',JSON.stringify({'sdf':'sdf'}), myFunction );

      console.log(   window.Jsbridge.syncInvoke('firstnotify'));
}

</script>
</body>
</html>